//
//  RanklistCell.m
//  tcpoctest
//
//  Created by gump on 6/7/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "RanklistCell.h"

#import <QuartzCore/QuartzCore.h>

@implementation RanklistCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        CGRect headFrame = CGRectMake(6, (60 - 49)/2, 49, 49);
        self.headImageView = [[UIImageView alloc] initWithFrame:headFrame];
        self.headImageView.userInteractionEnabled = YES;
        self.headImageView.layer.cornerRadius = 5;
        self.headImageView.layer.masksToBounds = YES;
        [self.contentView addSubview:self.headImageView];
        
        //金币或花的图片view
        headFrame = CGRectMake(146, (60 - 30)/2, 30, 30);
        self.signImageView = [[UIImageView alloc] initWithFrame:headFrame];
        self.signImageView.userInteractionEnabled = YES;
        self.signImageView.layer.cornerRadius = 5;
        self.signImageView.layer.masksToBounds = YES;
        [self.contentView addSubview:self.signImageView];
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(64, 4, 120, 30)];
		self.nameLabel.backgroundColor = [UIColor clearColor];
		self.nameLabel.textColor = [UIColor darkGrayColor] ;
        self.nameLabel.highlightedTextColor = [UIColor whiteColor];
		self.nameLabel.font = CENTER_CELL_TITLE_FONT;
		self.nameLabel.textAlignment = UITextAlignmentLeft;
		[self.contentView addSubview:self.nameLabel];
        
        self.sexicon = [[UIImageView alloc]initWithFrame:CGRectMake(64, 35, 14, 14)];
        [self.contentView addSubview:self.sexicon];
        
        
        self.disLabel = [[UILabel alloc]initWithFrame:CGRectMake(85, 28, 200, 30)];
		self.disLabel.backgroundColor = [UIColor clearColor];
		self.disLabel.textColor = [UIColor colorWithRed:143/255.0f green:143/255.0f blue:143/255.0f  alpha:1.0f] ;
        self.disLabel.highlightedTextColor = [UIColor grayColor];
		self.disLabel.font = [UIFont systemFontOfSize:16];
		self.disLabel.textAlignment = UITextAlignmentLeft;
		[self.contentView addSubview:self.disLabel];
        
        self.moneyLabel = [[UILabel alloc]initWithFrame:CGRectMake(180, 12, 200, 30)];
		self.moneyLabel.backgroundColor = [UIColor clearColor];
		self.moneyLabel.textColor = [UIColor darkGrayColor] ;
        self.moneyLabel.highlightedTextColor = [UIColor grayColor];
		self.moneyLabel.font = [UIFont systemFontOfSize:16];
		self.moneyLabel.textAlignment = UITextAlignmentLeft;
		[self.contentView addSubview:self.moneyLabel];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

- (void)dealloc
{
}

@end
